import request from "@/utils/request";

// 查询新建发文单条数据
export function getXinjian(id) {
  return request({
    url: `/tbUserTask/get/new/dispatch/${id}`,
    method: "GET",
    jy: true,
    // data:{id},
  });
}

// 查询新建事项列表
export function getXinjianList(params) {
  return request({
    url: `/tbUserNewDispatch/list`,
    method: "GET",
    jy: true,
    params,
  });
}

//新建事项
export function addFawen(data) {
  return request({
    url: `/tbUserNewDispatch/add`,
    jy: true,
    method: "post",
    data,
  });
}
//审批
export function shenpiXinjian(data) {
  return request({
    url: `/tbUserTask/approval`,
    method: "post",
    data,
    jy: true,
  });
}

// 查询宣传报道单条数据
export function getxuanchuan(id) {
  return request({
    url: `/tbUserPropagandaReport/get/${id}`,
    method: "GET",
    jy: true,
    // data:{id},
  });
}

//审批宣传
export function shenpixuanchuan(data) {
  return request({
    url: `/tbUserPropagandaReport/approval`,
    method: "post",
    data,
    jy: true,
  });
}

// 查询工作餐单条数据
export function getgongzuocan(id) {
  return request({
    url: `/tbUserWorkingLunch/get/${id}`,
    method: "GET",
    jy: true,
    // data:{id},
  });
}

//审批工作餐
export function shenpigongzuocan(data) {
  return request({
    url: `/tbUserWorkingLunch/approval`,
    method: "post",
    data,
    jy: true,
  });
}
// 1 获取所有用户【非树结构】
export function getUserList(data) {
  return request({
    url: `/assess/common/query/user/all`,
    method: "get",
    data,
    jy: true,
  });
}

//新建宣传报道
export function addxuanchuan(data) {
  return request({
    url: `/tbUserPropagandaReport/add`,
    method: "post",
    jy: true,
    data,
  });
}
// 查询宣传报道列表
export function getxuanchuanList(params) {
  return request({
    url: `/tbUserPropagandaReport/list`,
    method: "GET",
    jy: true,
    params,
  });
}

// 快捷打印
export function printDocument(id) {
  return request({
    url: `/tbUserTask/get/new/printDocument/${id}`,
    method: "get",
    jy: true,
  });
}

// 催办通知
export function urgingFlowApi(params) {
	return request({
		url: `/tbUserNewDispatch/reminderNotice`,
		method: 'get',
    jy: true,
		params,
	})
}
